package com.casic.ops.entity.dto.pipeline.datastructure.event;

import com.casic.ops.entity.vo.pipeline.response.Response;
import java.util.concurrent.ExecutorService;

/**
 * 事件处理器顶层接口
 * @author cww
 * @date 2022/6/17
 * @param <R>
 * @param <E>
 */
public interface EventHandlerI<R extends Response, E extends EventI> {

    default public ExecutorService getExecutor(){
        return null;
    }

    public R execute(E e);
}
